@import './index.less';


#app {
  height: 100%;

  &.colorWeak {
    filter: invert(80%);
  }
  &.userLayout {
    overflow: auto;
  }
}
.ant-layout{
  background: #F8FCFD;
}
.ant-table-thead > tr >th {
  background: #F9FBFD;
  border-bottom: 1px solid #F8FCFD;
}
.layout.ant-layout {
  height: auto;
  overflow-x: hidden;
  &.mobile,
  &.tablet {
    .ant-layout-content {
      .content {
        margin: 24px 0 0;
      }
    }

    /**
     * ant-table-wrapper
     * 覆盖的表格手机模式样式，如果想修改在手机上表格最低宽度，可以在这里改动
     */
    .ant-table-wrapper {
      .ant-table-content {
        overflow-y: auto;
      }
      .ant-table-body {
        min-width: 800px;
      }
    }
    .topmenu {
      /* 必须为 topmenu  才能启用流式布局 */
      &.content-width-Fluid {
        .header-index-wide {
          margin-left: 0;
        }
      }
    }
  }

  &.mobile {
    .sidemenu {
      .ant-header-fixedHeader {
        &.ant-header-side-opened,
        &.ant-header-side-closed {
          width: 100%;
        }
      }
    }
  }

  &.ant-layout-has-sider {
    flex-direction: row;
  }

  .trigger {
    font-size: 20px;
    line-height: 64px;
    padding: 0 24px;
    cursor: pointer;
    transition: color 0.3s;
    &:hover {
      background: rgba(0, 0, 0, 0.025);
    }
  }

  .topmenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width 0.2s;

      &.ant-header-side-opened {
        width: 100%;
      }

      &.ant-header-side-closed {
        width: 100%;
      }
    }
    /* 必须为 topmenu  才能启用流式布局 */
    &.content-width-Fluid {
      .header-index-wide {
        max-width: unset;
        .header-index-left {
          flex: 1 1 1000px;
          .logo{
            margin-left: 25px;
          }
          .ant-menu.ant-menu-horizontal{
            max-width: calc(100vw - 190px - 238px - 25px);
            flex: 1 1 calc(100vw - 190px - 238px - 25px);
          }
        }
        .header-index-right{
          margin-right:25px;
        }
      }

      .page-header-index-wide {
        max-width: unset;
      }
    }
  }

  .sidemenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width 0.2s;

      &.ant-header-side-opened {
        width: calc(100% - 256px);
      }

      &.ant-header-side-closed {
        width: calc(100% - 80px);
      }
    }
  }

  .header {
    height: 64px;
    padding: 0 12px 0 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
  }

  .header,
  .top-nav-header-index {
    .user-wrapper {
      float: right;
      height: 100%;

      .action {
        cursor: pointer;
        padding: 0 12px;
        display: inline-block;
        transition: all 0.3s;
        height: 100%;
        color: rgba(0, 0, 0, 0.65);

        &:hover {
          background: rgba(0, 0, 0, 0.025);
        }

        .avatar {
          margin: 20px 8px 20px 0;
          color: #1890ff;
          background: hsla(0, 0%, 100%, 0.85);
          vertical-align: middle;
        }

        .icon {
          font-size: 16px;
          padding: 4px;
        }
      }
    }

    &.dark {
      .user-wrapper {
        .action {
          color: rgba(255, 255, 255, 0.85);
          a {
            color: rgba(255, 255, 255, 0.85);
          }

          &:hover {
            background: rgba(255, 255, 255, 0.16);
          }
        }
      }
    }
  }

  &.mobile,
  &.tablet {
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .trigger {
            color: rgba(255, 255, 255, 0.85);
            padding: 0 12px;
          }

          .logo.top-nav-header {
            flex: 0 0 56px;
            text-align: center;
            line-height: 58px;
            h1 {
              display: none;
            }
          }
        }
      }

      &.light {
        .header-index-wide {
          .header-index-left {
            .trigger {
              color: rgba(0, 0, 0, 0.65);
            }
          }
        }
        //
      }
    }
  }

  &.tablet {
    // overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .logo > a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
        .ant-menu.ant-menu-horizontal {
          flex: 1 1 auto;
          white-space: normal;
        }
      }
    }
  }

  .top-nav-header-index {
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
    transition: background 0.3s, width 0.2s;

    .header-index-wide {
      max-width: 1200px;
      margin: auto;
      padding-left: 0;
      display: flex;
      height: 64px;

      .ant-menu.ant-menu-horizontal {
        max-width: 835px;
        flex: 0 1 835px;
        border: none;
        height: 64px;
        line-height: 64px;
      }

      .header-index-left {
        flex: 0 1 1000px;
        display: flex;

        .logo.top-nav-header {
          flex: 0 0 165px;
          width: 165px;
          height: 64px;
          position: relative;
          line-height: 64px;
          transition: all 0.3s;
          overflow: hidden;

          img,
          svg {
            display: inline-block;
            vertical-align: middle;
            height: 32px;
            width: 32px;
          }

          h1 {
            color: #fff;
            display: inline-block;
            vertical-align: top;
            font-size: 16px;
            margin: 0 0 0 12px;
            font-weight: 400;
          }
        }
      }

      .header-index-right {
        flex: 0 0 238px;
        align-self: flex-end;
        height: 64px;
        overflow: hidden;

        .content-box {
          float: right;
        }
      }
    }

    &.light {
      background-color: #fff;

      .header-index-wide {
        .header-index-left {
          .logo {
            h1 {
              color: #002140;
            }
          }
        }
      }
    }
  }

  // 内容区
  .layout-content {
    margin: 24px 24px 0px;
    height: 100%;
    height: 64px;
    padding: 0 12px 0 0;
  }

  // footer
  .ant-layout-footer {
    padding: 0;
  }
}

.topmenu {
  .page-header-index-wide {
    max-width: 1200px;
    margin: 0 auto;
  }
}

// drawer-sider 自定义
.ant-drawer.drawer-sider {
  .sider {
    box-shadow: none;
  }

  &.dark {
    .ant-drawer-content {
      background-color: rgb(0, 21, 41);
    }
  }
  &.light {
    box-shadow: none;
    .ant-drawer-content {
      background-color: #fff;
    }
  }

  .ant-drawer-body {
    padding: 0;
  }
}

// 菜单样式
.sider {
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  position: relative;
  z-index: 10;
  min-height: 100vh;

  .ant-layout-sider-children {
    overflow-y: hidden;

    &:hover {
      overflow-y: auto;
    }
  }

  &.ant-fixed-sidemenu {
    position: fixed;
    height: 100%;
  }

  .logo {
    position: relative;
    height: 64px;
    padding-left: 24px;
    overflow: hidden;
    line-height: 64px;
    background: #002140;
    transition: all .3s;

    img,
    svg,
    h1 {
      display: inline-block;
      vertical-align: middle;
    }

    img,
    svg {
      height: 32px;
      width: 32px;
    }

    h1 {
      color: #fff;
      font-size: 20px;
      margin: 0 0 0 12px;
      font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
      font-weight: 600;
      vertical-align: middle;
    }
  }

  &.light {
    background-color: #fff;
    box-shadow: 2px 0px 8px 0px rgba(29, 35, 41, 0.05);

    .logo {
      background: #fff;
      box-shadow: 1px 1px 0px 0px #e8e8e8;

      h1 {
        color: unset;
      }
    }

    .ant-menu-light {
      border-right-color: transparent;
    }
  }
}

// 外置的样式控制
.user-dropdown-menu {
  span {
    user-select: none;
  }
}
.user-dropdown-menu-wrapper.ant-dropdown-menu {
  padding: 4px 0;

  .ant-dropdown-menu-item {
    width: 160px;
  }

  .ant-dropdown-menu-item > .anticon:first-child,
  .ant-dropdown-menu-item > a > .anticon:first-child,
  .ant-dropdown-menu-submenu-title > .anticon:first-child .ant-dropdown-menu-submenu-title > a > .anticon:first-child {
    min-width: 12px;
    margin-right: 8px;
  }
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}

.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

.content {
  .table-operator {
    margin-bottom: 18px;

    button {
      margin-right: 8px;
    }
  }
}
.homeBox{
  .backToBench{
    padding-top:3.5rem;
    span{
      display: block;
      width: 160px;
      height: 60px;
      border-bottom-right-radius: 9px;
      border-top-right-radius: 9px;
      background: #dfe1e3;
      text-align: center;
      line-height: 60px;
      font-size: 18px;
      color: #666666;
      font-weight: bold;
      cursor: pointer;
    }
  }
  .navBox{
    padding-top: 3.1rem;
    .titlebox{
      text-align: center;
    }
    .firstNavList{
      padding:3.5rem 0px;
      display: flex;
      justify-content:center;
      align-items:center;
      .rowItem{
        margin: 0 5px;

      }
    }
  }
  .homeBottom{
    position: fixed;
    width: 100%;
    bottom: 0px;
    left: 0px;
    text-align: center;
    line-height: 53px;
    font-size: 14px;
    color: #BEC2C9;
  }
}
.firstNavItem{
  height: 180px;
  width: 180px;
  background: #ffffff;
  position: relative;
  display: flex;
  cursor: pointer;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  border-top: 3px solid #fff;
  &:hover{
    border-top: 3px solid rgba(36,111,255,1);
    box-shadow:0 6px 19px 1px rgba(62,105,135,0.15);
  }
  .anticon{
    margin-top: 20px;
    font-size: 50px;
  }
  p{
    line-height: 40px;
    font-size:16px;
    font-family:Microsoft YaHei;
    font-weight:bold;
    margin-top: 20px;
    color:#777777;
  }
  span{
    position: absolute;
    right: 10px;
    bottom: 10px;
  }
}
.firstNavItem.noAuth{
  p,img{
    filter: grayscale(100%);
    opacity:0.5;
  }

}
.firstNavItem.hoverCur{
  box-shadow:0 6px 19px 1px rgba(62,105,135,0.15);
}
.popContent{
  .subRow{
    display: flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    .subnavItem{
      width: 120px;
      height: 80px;
      background: #ffffff;
      display: flex;
      cursor: pointer;
      justify-content:center;
      align-items:center;
      flex-direction:column;
      margin: 10px;
      &:hover{
        background-color: #246FFF;
        p{
          color: #ffffff;
        }
      }
    }
    .subnavItem.noAuth{
      p{
        filter: grayscale(100%);
        opacity:0.5;
      }
      &:hover{
        background-color: #ffffff;
        p{
          color: #16368a;
        }
      }
    }
    .icon{
      width: 30px;
      height: 30px;
    }
    p{
      font-size: 14px;
      color: #16368a;
      line-height: 23px;
    }
  }
}
.start-btn {
  width:100px;
  height:40px;
  line-height: 40px;
  border-radius: 4px;
  border: none;
  box-shadow: none;
  font-size: 14px;
  color: #fff;
}
.action-icon{
  margin-right: 5px;
}
.action-label{
  margin:0 10px;
  cursor: pointer;
  color: #399BFF;
  &:hover{
    color: #6ab9ff;
  }
}
.ant-modal-body::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.ant-modal-body::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;

}
.ant-menu-submenu-selected {
  color: #3EB2F6;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color:rgba(0,132,255,1);
}
.ant-menu-item-selected > a, .ant-menu-item-selected > a:hover {
  color: #fff;
}
.t-form-item{
  height: 40px;
  width: 200px!important;
}
.t-form-item-range{
  width: 300px;
  .ant-input{
    height: 40px;
  }
}
.t-model-item{
  height: 40px;
}
.ant-table-tbody>tr>td, .ant-table-thead>tr>th{
  padding: 15px 16px;
  overflow-wrap: break-word;
  height: 50px;
}
.ant-card{
  box-shadow:0px 3px 10px 0px rgba(96,122,151,0.13);
}
.mission-number {
  font-size: 18px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: rgba(0, 131, 255, 1);
}

.mission-text {
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: rgba(85, 85, 85, 1);
}

.mission-left {
  text-align: right;
  height: 81px;
}

.mission-right {
  text-align: left;
  height: 81px;
  line-height: 30px;
  padding-top: 10px;
}

.mission-left p, .mission-right p {
  margin: 0;
}

.mission-logo {
  width: 81px;
  height: 81px;
  background: linear-gradient(0deg, rgba(14, 176, 255, 1), rgba(129, 213, 255, 1));
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  line-height: 70px;
  text-align: center;
}

.mission-container {
  margin-top: 50px;
  text-align: center;
}

.mission-logo-middle {
  margin-left: 2px;
  margin-top: 5px;
  width: 42px;
  height: 42px;
}
.default-btn{
  &:hover,&:active,&visited{
    color: #fff;
  }
}
.default-btn:hover, .default-btn:focus{
  color: #fff;
}
